import { createStore } from 'vuex';

export default createStore({
    state: {
        count: 0
    },
    mutations: {
        getIncrement(state, val = 0) {
            state.count += val
        }
    },
    actions: {
        actionsIncrement(content, val) {
            content.commit('getIncrement', val)
        }
    }
})

